package com.fqgj.sentry;

import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySources;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@ComponentScan(basePackages = {
        "com.fqgj.common.base",
        "com.fqgj.sentry",
        "com.fqgj.report"
})
@ServletComponentScan(basePackageClasses = {com.fqgj.log.filter.TraceFilter.class}, basePackages = "com.fqgj.sentry")
@ImportResource({"classpath:app-redis.xml"})
@NacosPropertySources({
        @NacosPropertySource(dataId = "risk-sentry", autoRefreshed = true)
})

public class AdminRestApplication {

    public static void main(String[] args) {
        SpringApplication.run(AdminRestApplication.class, args);
    }
}
